Test Case View
Test Case View lets you visualize the test case steps in your model. This view is read-only and does not allow editing. A test case must have at least one step to display a visualization.
To view a test case:
- Go to Designer > Test Cases
- Click on the name of the test case that you're interested in.
Model Visualization
The Test Case View shows step numbers on the actions that are included in your test case. Test case steps that do not specify an action are excluded from the model visualization and are not runnable. Any action that is being used in the test case step (on the right) will display a step number in the model.
When an action is used in more than three steps, the indicator on the action will only show the first, second, and final step numbers. For example, if an action is used by steps 3,4,5, and 6, then 3,4,...6
will be shown.
Steps List
The Steps tab displays the list of test case steps. Each valid step can display the following information:
- Number of the step
- Name of the state that contains the action
- Name of the action
Steps that use a submodel are followed by an additional item that includes the following details:
- Name of the submodel
- Name of the test case
You can click on the name of a test case in the step list to go to a view of that test case.
Parameters List
The Parameters tab displays parameter names and values grouped by step number.
Validity
If a test case is invalid then a message will replace the Model Visualization. A test case can become invalid if at least one of its steps is invalid for one of the following reasons:
- The state or action does not exist.
- The state or action name was changed.
- The action now exists in a different state.
Invalid steps are highlighted in the Step List with a yellow number and border. The invalid step will display a brief message that describes the validation issue.
Test cases are validated when their model is updated.